package com.carleasoft.mps.adu.business.user.service;

import java.text.ParseException;
import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.adu.business.user.bean.entity.MAuthorityUserVacation;
import com.carleasoft.mps.adu.business.user.bean.po.MAuthorityUserVacationPo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityDeptCountVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityUserDynamicVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityUserVacationVo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * 人员休假Service接口
 * 
 * @author ruoyi
 * @date 2024-04-12
 */
public interface IMAuthorityUserVacationService  extends IService<MAuthorityUserVacation>
{
    /**
     * 查询人员休假
     * 
     * @param id 人员休假主键
     * @return 人员休假
     */
    public MAuthorityUserVacationVo selectMAuthorityUserVacationById(Integer id);

    /**
     * 查询人员休假列表
     * 
     * @param mAuthorityUserVacationPo 人员休假
     * @return 人员休假集合
     */
    public Page<MAuthorityUserVacationVo> selectMAuthorityUserVacationList(Page page, MAuthorityUserVacationPo mAuthorityUserVacationPo);

    /**
     * 新增人员休假
     * 
     * @param mAuthorityUserVacation 人员休假
     * @return 结果
     */
    public boolean insertMAuthorityUserVacation(MAuthorityUserVacation mAuthorityUserVacation);

    /**
     * 根据部门Code分钟求和总条数
     * @return
     */
    public List<MAuthorityDeptCountVo> selectMAuthorityDeptCountByDeptCode();

    /**
     * 修改人员休假
     * 
     * @param mAuthorityUserVacation 人员休假
     * @return 结果
     */
    public boolean updateMAuthorityUserVacation(MAuthorityUserVacation mAuthorityUserVacation);


    /**
     * 删除人员休假信息
     * 
     * @param id 人员休假主键
     * @return 结果
     */
    public boolean deleteMAuthorityUserVacationById(Integer id);


    /**
     * 导入人员休假
     * @param file
     * @return
     */
    boolean userDynamicExcel(MultipartFile file);

    /**
     * 导出人员休假
     * @param startTime
     * @param response
     * @return
     */
    boolean export( HttpServletResponse response,String startTime) throws ParseException;
}
